-- GENERATED SPELL FOR [Carrion Hunter] --


function spell0_31263(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(24187,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31263', 579, 1)
end

function Sorts_31263(pUnit, Event)
local choix_sorts_31263 = math.random(0, 0)
if choix_sorts_31263 == 0 then
pUnit:RegisterEvent('spell0_31263', 1, 1)
end
end

function mob31263_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31263', math.random(1500, 3000), 1)
end

function mob31263_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31263_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31263_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31263, 1, 'mob31263_Action')
RegisterUnitEvent(31263, 2, 'mob31263_Leave')
RegisterUnitEvent(31263, 3, 'mob31263_Kill')
RegisterUnitEvent(31263, 4, 'mob31263_Die')
